import random

if __name__ == '__main__':
    f = open("../data/personal_market_data.csv", "w")
    f.write('USER_ID,LAC_CODE\n')
    l = []
    for i in range(300):
        user_id = f'user_id_{i+1:03d}'
        rand1 = random.randint(1,9)
        rand2 = random.randint(1,9)
        while rand1 == rand2:
            rand2 = random.randint(1, 9)
        lac1 = f'lac_{rand1:02d}'
        lac2 = f'lac_{rand2:02d}'
        l.append(f'{user_id},{lac1}\n')
        l.append(f'{user_id},{lac2}\n')

    f.writelines(l)
    f.close()

